<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities.Versioning" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities.Versioning" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost/RioWCFServices/RioWCFService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities" />
  <xs:import schemaLocation="http://localhost/RioWCFServices/RioWCFService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="ArrayOfVersioningItem">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="VersioningItem" nillable="true" type="tns:VersioningItem" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfVersioningItem" nillable="true" type="tns:ArrayOfVersioningItem" />
  <xs:complexType name="VersioningItem">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities" base="q1:ReturnObject">
        <xs:sequence>
          <xs:element minOccurs="0" name="Author" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="CreatedOn" type="xs:dateTime" />
          <xs:element minOccurs="0" name="DocumentPath" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="FullVersion" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="IsCurrentVersion" type="xs:boolean" />
          <xs:element minOccurs="0" name="IsOriginalVersion" type="xs:boolean" />
          <xs:element minOccurs="0" name="Major" type="xs:int" />
          <xs:element minOccurs="0" name="Minor" type="xs:int" />
          <xs:element minOccurs="0" name="Note" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="OwnerId" type="xs:long" />
          <xs:element minOccurs="0" name="PhotoCredit" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="State" type="tns:VersionState" />
          <xs:element minOccurs="0" name="VersionId" type="xs:long" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="VersioningItem" nillable="true" type="tns:VersioningItem" />
  <xs:simpleType name="VersionState">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Waiting">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Checkin">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Checkout">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Deleted">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="VersionState" nillable="true" type="tns:VersionState" />
  <xs:complexType name="VersioningModel">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q2="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities" base="q2:ReturnObject">
        <xs:sequence>
          <xs:element minOccurs="0" name="Identifier" type="xs:int" />
          <xs:element minOccurs="0" name="IsEnabled" type="xs:boolean" />
          <xs:element minOccurs="0" name="MaxMajorVersion" type="xs:int" />
          <xs:element minOccurs="0" name="MaxMinorVersion" type="xs:int" />
          <xs:element minOccurs="0" name="ModelType" type="tns:VersionType" />
          <xs:element minOccurs="0" name="WorkFlow" type="xs:long" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="VersioningModel" nillable="true" type="tns:VersioningModel" />
  <xs:simpleType name="VersionType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="None" />
      <xs:enumeration value="NoControl" />
      <xs:enumeration value="Major" />
      <xs:enumeration value="MajorMinor" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="VersionType" nillable="true" type="tns:VersionType" />
  <xs:complexType name="VersionNumber">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q3="http://schemas.datacontract.org/2004/07/NetBay.Core.BusinessEntities" base="q3:ReturnObject">
        <xs:sequence>
          <xs:element minOccurs="0" name="Major" type="xs:int" />
          <xs:element minOccurs="0" name="Minor" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="VersionNumber" nillable="true" type="tns:VersionNumber" />
</xs:schema>